<?php
$dbhost = 'localhost'; 
$dbuser = 'root'; //我的用户名
$dbpass = 'q1w2e3'; //我的密码
$dbname = 'csc'; //我的mysql库名
is_resource(mysqli) || $mysqli = new mysqli($dbhost,$dbuser,$dbpass,$dbname) or die("Program died. Cannot link to the Database.".mysqli_connect_error());